﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EHTWebsiteProject.Code.BLL;
using EHTWebsiteProject.Code.Entity;

namespace EHTWebsiteProject
{
    public partial class GuideDetails : System.Web.UI.Page
    {
        private int ID = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                ID = Int32.Parse(Request.QueryString["ID"].ToString());
            }
            catch (Exception ex)
            {
                ID = 0;
            }
            if (!Page.IsPostBack)
            {
                LoadData(ID);
            }
        }

        public void LoadData(int ID)
        {
            FAQs theFAQs = FAQsProvider.GetFAQsbyID(ID);
            lbTitle.Text = theFAQs.TitleFAQs.ToString();
            lbContent.Text = theFAQs.ContentFAQs.ToString();
        }
    }
}